<?php

namespace YouBaoLian;


class YouBaoLianConfig
{
    public function doc($name)
    {
        $document = '\\YouBaoLian\\Document\\' . $name;
        if (!class_exists($document)) {
            return [];
        } else {
            $document = new $document;
            return $document->doc();
        }
    }
}